package com.mall.user.feign;

import com.mall.common.util.RespResult;
import com.mall.user.model.Address;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Darren
 * @date 2022-08-29 11:50
 * Description：
 */
@FeignClient("mall-user")
@RequestMapping("/address")
public interface AddressFeign {

    @GetMapping("/list")
    @ApiOperation(value = "根据用户名称获取全部地址")
    RespResult<Address> list();

}
